package boot.service;

import boot.entity.Teacher;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author HLF
 * @version V1.0
 * @package service.impl
 * @date 2021/10/17 10:03
 */

@Service//创建目标类对象,被切面类
public class SomeServiceImpl {
    public void doSome(String name, Integer age) {
        System.out.println("执行了SomeServiceImpl的doSome方法！");
    }

    public String doOther(String name, Integer age) {
        System.out.println("执行了SomeServiceImpl的doOther方法！");
        return "doOther方法的返回值！";
    }

    public Teacher updateTeacher(Teacher teacher) {
        System.out.println("执行了SomeServiceImpl的updateTeacher方法！");
        return teacher;
    }
}
